﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Hotel_application.Models;

namespace Hotel_application.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Hotel Management";
            var ks = new KhachSanEntities();
            return View(ks);
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }

        public ActionResult ShowTypeOfRoom()
        {
            var ks = new KhachSanEntities();
            var room = ks.LoaiPhongs;
            var list_room = new List<LoaiPhong>();
            list_room = room.ToList<LoaiPhong>();
            return View(list_room);
        }
    }
}
